<template>
	<view class="recharge_page">
		<view class="num_box">
			<view class="text">充值金额</view>
			<view class="item_box">
				<view class="item" :class="index==1?'select':''" @click="index=1">300元</view>
				<view class="item" :class="index==2?'select':''" @click="index=2">500元</view>
				<view class="item" :class="index==3?'select':''" @click="index=3">1000元</view>
				<view class="item" :class="index==4?'select':''" @click="index=4">3000元</view>
				<view class="item" :class="index==5?'select':''" @click="index=5">5000元</view>
				<input class="item" v-model="value" placeholder="其他" />
				<!-- <view class="item" :class="index==1?'select':''">其他</view> -->
			</view>
		</view>
		<view class="type_pay">
			<view style="margin-bottom: 32rpx;">选择充值方式</view>
			<view class="pay">
				<image class="icon" src="../../static/wallet/ali.png"></image>
				<view class="pay_s" @click="pay_way=1">
					<image v-show="pay_way==1" src="../../static/wallet/yes.png"></image>
				</view>
			</view>
			<view class="pay">
				<image class="icon" src="../../static/wallet/wx.png"></image>
				<view class="pay_s" @click="pay_way=2">
					<image v-show="pay_way==2" src="../../static/wallet/yes.png"></image>
				</view>
			</view>
		</view>
		<button class="btn">立即充值</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				index:1,
				value:'',
				pay_way:1
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
.recharge_page{
	width: 100%;
	height: 95vh;
	background-color: #f9f9f9;
	padding: 32rpx;
	.num_box{
		width: 100%;
		height: 324rpx;
		background-color: #FFFFFF;
		padding: 32rpx 26rpx;
		.text{
			font-size: 28rpx;
			color: #333333;
		}
		.item_box{
			width: 100%;
			height: 156rpx;
			margin-top: 64rpx;
			display: grid;
			grid-template-columns: repeat(3,198rpx);
			grid-gap: 20rpx;
			.item{
				width: 198rpx;
				height: 68rpx;
				line-height: 68rpx;
				text-align: center;
				border-radius: 56rpx;
				font-size: 28rpx;
				color: #00CC7B;
				border: 2rpx #00CC7B solid;
			}
		}
	}

    .type_pay{
		width: 100%;
		height: 256rpx;
		padding: 32rpx;
		margin-top: 32rpx;
		background-color: #FFFFFF;
		.pay{
			width: 100%;
			height: 48rpx;
			display: flex;
			margin-top: 32rpx;
			justify-content: space-between;
			.icon{
				width: 48rpx;
				height: 48rpx;
			}
			.pay_s{
				width: 40rpx;
				height: 40rpx;
				border-radius: 100%;
				border:2rpx #999999 solid;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
	}

    .btn{
		color: #FFFFFF;
		width: 100%;
		border-radius: 74rpx;
		background-color: #00CC7B;
		margin-top: 94rpx;
	}
}
.select{
	color: #FFFFFF !important;
	background-color: #00CC7B;
}
</style>
